From: Matthias Clasen Date: Sun, 10 Jul 2022 19:22:18 +0000 (-0400) Subject: css: Allow fractional letterspacing X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~81^2^2~81^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=726c9e83d27a575c7b25ebd81f737dd149dce7be;p=gtk4.git css: Allow fractional letterspacing Something like letter-spacing: -0.5px make a lot of sense. But we were handling the number as integer somewhere, loosing the fractional part. Fixes: #5034 --- diff --git a/gtk/gtkcssstyle.c b/gtk/gtkcssstyle.c index f03d9b4f1a..0822e80a46 100644 --- a/gtk/gtkcssstyle.c +++ b/gtk/gtkcssstyle.c @@ -596,7 +596,7 @@ gtk_css_style_get_pango_attributes (GtkCssStyle *style) GtkTextDecorationStyle decoration_style; const GdkRGBA *color; const GdkRGBA *decoration_color; - int letter_spacing; + double letter_spacing; /* text-decoration */ decoration_line = _gtk_css_text_decoration_line_value_get (style->font_variant->text_decoration_line);